package com.lumingfeng.serviceImpl;

import com.lumingfeng.dao.InDetailDao;
import com.lumingfeng.entity.InDetail;
import com.lumingfeng.entity.User;
import com.lumingfeng.service.InDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by chengyin on 16/8/18.
 */
@Service(value = "inDetailService")
public class InDetailServiceImpl implements InDetailService {

    @Resource
    private InDetailDao inDetailDao;

    public void insertInDetail(InDetail inDetail) {
        inDetailDao.insertInDetail(inDetail);
    }

    public InDetail getInDetailById(int id) {
        return inDetailDao.getInDetailById(id);
    }

    public List<InDetail> getInDetails() {
        return inDetailDao.getInDetails();
    }

    public List<InDetail> getRTInDetails() {
        return inDetailDao.getRTInDetails();
    }

    public List<InDetail> getInDetailsByOrderInId(int orderInId) {
        return inDetailDao.getInDetailsByOrderInId(orderInId);
    }

    public List<InDetail> getRTInDetailsByOrderInId(int orderInId) {
        return inDetailDao.getRTInDetailsByOrderInId(orderInId);
    }

    public List<InDetail> getWTInDetailsByOrderInId(int orderInId) {
        return inDetailDao.getWTInDetailsByOrderInId(orderInId);
    }

    public List<InDetail> getInDetailsByGoodsId(int id) {
        return inDetailDao.getInDetailsByGoodsId(id);
    }

    public List<InDetail> getRTInDetailsByGoodsId(int id) {
        return inDetailDao.getRTInDetailsByGoodsId(id);
    }

    public void update(InDetail inDetail) {
        inDetailDao.update(inDetail);
    }

    public List<InDetail> getWTInDetailsByGoodsId(int i) {
        return inDetailDao.getWTInDetailsByGoodsId(i);
    }

//    public InDetail selectByPrimaryKey(Integer id) {
//        return inDetailDao.selectByPrimaryKey(id);
//    }
//
//    public List<InDetail> selectByInID(String inID) {
//        return inDetailDao.selectByInID(inID);
//    }
//
//    public List<InDetail> selectleftByInID(String inID) {
//        return inDetailDao.selectleftByInID(inID);
//    }
//
//    public List<InDetail> selectByGoodsID(Integer goodsId) {
//        return inDetailDao.selectByGoodsID(goodsId);
//    }
//
//    public List<InDetail> selectByUserID(User userID) {
//        return inDetailDao.selectByUserID(userID);
//    }
//
//    public Integer save(InDetail inDetail) {
//        return inDetailDao.save(inDetail);
//    }
//
//    public List<InDetail> selectAllleft() {
//        return inDetailDao.selectAllleft();
//    }
//
//    public List<InDetail> selectAll() {
//        return inDetailDao.selectAll();
//    }
//
//    public List<InDetail> selectAllleftByGoodsID(Integer goodsId) {
//        return inDetailDao.selectAllleftByGoodsID(goodsId);
//    }
}
